export const miXinPower = {
  data() {
    return {
      power: [],
    };
  },
  created() {
    this.isHavePower();
  },
  methods: {
    isHavePower() {
      const path = this.$route.path;
      const power = this.$store.getters.getPower(path);
      this.power = power.map((item) => item.name);
      console.log("power", this.power);
    },
  },
};
